/*  This file is part of the comicconquer project
    Copyright (C) 2010 Reach <reach334@gmail.com>

    ComicConquer is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This software is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public 
    License along with this software.  If not, see <http://www.gnu.org/licenses/>.

*/

#include "mist.h"
#include "MainDialog.h"
#include <QtGui/QtGui>

int main(int argc, char *argv[])
{ 
    QApplication app(argc, argv);

    sys::SysStatus::instance().setSystemBusy(false);

    Q_INIT_RESOURCE(onyx_ui_images);

    // Set QObject::tr() to support UTF-8
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));

    // Set QString to support UIF-8
    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));

    MainDialog window;

    app.installEventFilter(&window);

#ifdef QT_ARCH_ARM
    window.showFullScreen();
#else
    window.resize(600, 800);
    window.show();
#endif

    return app.exec();
}
